package com.itheima.six;

public abstract class Animal {
    private String age;

    public Animal() {
    }

    public Animal(String age) {
        this.age = age;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void drink() {
        System.out.println("喝水");
    }
    public abstract void eat();
}

